//
//  BBAlertView.h
//  AlertViewTool
//
//  Created by XiaoMing on 16/2/24.
//  Copyright © 2016年 XiaoMing. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <UIKit/UIKit.h>

@class BBAlertView;

typedef void (^BBAlertViewDidSelectButtonBlock)(BBAlertView *alertView, NSInteger buttonIndex);

@interface BBAlertView : UIView

@property (nonatomic, strong) UIImageView *headImage;//头像
@property (nonatomic, strong) UILabel     *alertTitleLabel;//用户名
@property (nonatomic, strong) UILabel     *alertContentLabel;//用户信息
@property (nonatomic, strong) UILabel     *alertMessageLabel;//用户信息
@property (nonatomic, strong) UIButton    *btn;//按钮
@property (nonatomic, strong) UIView      *backView;//背景View
@property (nonatomic, strong) UIButton    *xButton;//X按钮
@property (nonatomic, strong) UITapGestureRecognizer *tap;

@property (nonatomic, copy) dispatch_block_t btnBlock;
@property (nonatomic, copy) dispatch_block_t XBtnBlock;
@property (nonatomic, copy) dispatch_block_t dismissBlock;

- (id)initWithImage:(UIImage  *)headImage
      initWithTitle:(NSString *)title
        contentText:(NSString *)content
        messageText:(NSString *)message
  centerbuttonTitle:(NSString *)centerTitle;

- (void)show;

@end
